package io.babystar.modules.business.dao;

import io.babystar.modules.business.entity.CourseEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author jeson
 * @email 574197743@qq.com
 * @date 2021-03-23 20:03:34
 */
@Mapper
public interface CourseDao extends BaseMapper<CourseEntity> {

    /**
     * 重写课程分页
     * @param map
     * @return
     */
    List<CourseEntity> queryPageCourse(Map<String,Object> map);

    /**
     *校验已被选课的课程不可进行修改和删除操作
     * @param courseId
     * @return
     */
    Integer qureyCourseInfo(Integer courseId);
	
}
